import axios from 'axios'

export function newsIndexRequest() {
  return axios.get('/api/news_index')
}

export async function textAsyncNewsIndexnewsRequest() {
  try {
    let result = await axios.get('/api/news_index')
    console.log('----------');
    console.log(result);
    return result
  } catch (error) {
    return {code:400, msg:'error',data: null}
  }
}